package com.mall.sun.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "不同规格的商品的编号")
    @TableId(value = "gId", type = IdType.AUTO)
    private Integer gId;

    @ApiModelProperty(value = "外键 商品对应的类别 ")
    private Integer gcId;

    @ApiModelProperty(value = "外键 代理商ID ")
    private Integer agentId;

    @ApiModelProperty(value = "外键 供应商ID ")
    private Integer suppierId;

    @ApiModelProperty(value = "购买的数量")
    private Integer amount;

    @ApiModelProperty(value = "商品名称")
    private String gname;

    @ApiModelProperty(value = "商品图片")
    private String gpPhoto;

    @ApiModelProperty(value = "商品介绍")
    private String introduction;

    @ApiModelProperty(value = "进价")
    private Double jPrice;

    @ApiModelProperty(value = "售价")
    private Double sPrice;

    @ApiModelProperty(value = "折扣")
    private Double discount;

    @ApiModelProperty(value = "上架时间")
    private LocalDateTime pubTime;

    @ApiModelProperty(value = "进货总数量")
    private Integer total;

    @ApiModelProperty(value = "库存")
    private Integer gamount;

    @ApiModelProperty(value = "销量")
    private Integer scount;


}
